package com.hospital.hospitalsystem.modules.login.service;

import com.hospital.hospitalsystem.modules.login.dao.entity.HospitalMessageEntity;
import com.hospital.hospitalsystem.modules.login.dao.mapper.HospitalMessageMapper;
import com.hospital.hospitalsystem.modules.user.dto.MedicalListReq;
import com.hospital.hospitalsystem.modules.user.dto.MedicalRsp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author qiancheng@cqxyy.net
 * @date 2023/2/22
 */
@Component
public class HospitalMessageService {
    @Autowired
    private HospitalMessageMapper hospitalMessageMapper;

    public List<HospitalMessageEntity> selectByExample(Example example){
        return hospitalMessageMapper.selectByExample(example);
    }

    public HospitalMessageEntity selectOneByExample(Example example) {
        return hospitalMessageMapper.selectOneByExample(example);
    }

    public void insertSelective(HospitalMessageEntity hospitalMessageEntity) {
        hospitalMessageMapper.insertSelective(hospitalMessageEntity);
    }

    public void updateByExampleSelective(HospitalMessageEntity hospitalMessageEntity, Example example) {
        hospitalMessageMapper.updateByExampleSelective(hospitalMessageEntity,example);
    }

}
